package core

const (
	// SUCCESS 成功
	SUCCESS int = 0

	//+++++++++++++ 客户端错误段 +++++++++++++

	// BAD_REQUEST 请求参数不正确
	BAD_REQUEST int = 400
	// UNAUTHORIZED 账号未登录
	UNAUTHORIZED int = 401
	// FORBIDDEN 没有该操作权限
	FORBIDDEN int = 403
	// NOT_FOUND 请求未找到
	NOT_FOUND int = 404
	// METHOD_NOT_ALLOWED 请求方法不正确
	METHOD_NOT_ALLOWED int = 405
	// LOCKED 请求失败，请稍后重试
	LOCKED int = 423
	// TOO_MANY_REQUESTS 请求过于频繁，请稍后重试
	TOO_MANY_REQUESTS int = 429

	//+++++++++++++ 服务端错误段 +++++++++++++

	// INTERNAL_SERVER_ERROR 系统异常
	INTERNAL_SERVER_ERROR int = 500
	// NOT_IMPLEMENTED 功能未实现/未开启
	NOT_IMPLEMENTED int = 501

	// +++++++++++++ 自定义错误段 +++++++++++++

	// REPEATED_REQUESTS 重复请求，请稍后重试
	REPEATED_REQUESTS int = 900
	// DEMO_DENY 演示模式，禁止写操作
	DEMO_DENY int = 901
	// NO_SUCH_DATA 未查询到相关数据
	NO_SUCH_DATA int = 904
	// UNKNOWN 未知错误
	UNKNOWN int = 999
)
